{% extends 'templates/LR/base.html' %}

{% block title %}
    勋特-账号登录
{% endblock %}

{% load static %}

{% block link %}
    <link rel="stylesheet" href="{% static 'css/LR/login.css' %}">
{% endblock %}

{% block header %}
    勋特-账号登录
{% endblock %}

{% block main %}
    <div class="bg">
        <div class="slogan">
            <h2>欢迎使用个性化学习推荐系统</h2>
            <h2>登录可享更多权益</h2>
        </div>
        <div class="form_box">
            <div class="main">
                <h2>登录</h2>
                <form method="post">
                    {% csrf_token %}
                    <ul>
                        {{ form.as_ul }}
                        {% if form.non_field_errors %}
                            <div class="alert alert-danger">
                                {{ form.non_field_errors }}
                            </div>
                        {% endif %}
                        {{ message }}
                        <li>
                            <input type="submit" value="立即登录" class="submit-btn">
                        </li>
                    </ul>
                </form>
                <div class="bottom_box">
                    <a href="{% url 'register' %}">暂无账号，立即注册</a>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
